package com.xiaohua.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 微信登录参数
 *
 * @author 小花
 * @date 2025-03-23
 */
@ApiModel(value = "微信登录参数", description = "微信登录请求参数")
@Data
public class WechatLoginDTO {
    @ApiModelProperty(value = "微信授权码", required = true, example = "0231yUlw3D8JbB2JN8mw3aoAqf21yUl7")
    @NotBlank(message = "授权码不能为空")
    private String code;
    
    @ApiModelProperty(value = "用户昵称", required = true, example = "花花")
    private String nickname;
    
    @ApiModelProperty(value = "Base64编码的头像数据", required = true, example = "iVBORw0KGgoAAAANSUhEUgAA...")
    private String avatarData;
} 